﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lyh.Common.Parser;
using Lyh.Facade;
using Lyh.Facade.Impl;
using Lyh.Models;
using Lyh.Repository;
using Lyh.Repository.Impl;

namespace Lyh.ConsoleTest
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Start.");

            MyTest();

            Console.WriteLine("Done.");
            Console.ReadLine();
        }

        static void MyTest()
        {
            IUserRepository userRepository = null;
            IUserFacade userFacade = new UserFacade(userRepository);
            User user = userFacade.Get("7771F592-6BB0-473E-A2CB-788BA8A6477B");
            user = new User
            {
                Id =null
            };
            userFacade.SaveOrUpdate(user);
        }

        static void TestJson()
        {
            var v = new MenuTreeStore();
            Console.WriteLine(v.ToJson(true, false));
            Console.WriteLine(v.ToJson(true, true));
        }

        static void TestAction()
        {
            var action = new ActionRepository();
            var v = action.GetAllActionByAssembly();
        }
    }
}
